<template >
  <div>
      <h1>父组件</h1>
      <hr>
      <playOne @sendData="getData"></playOne>
      <hr>
      <playTwo :oneData="one"></playTwo>
      <hr>
      <playThree></playThree>
  </div>
</template>
<script>
import playOne from './child/playOne.vue'
import playTwo from './child/playTwo.vue'
import playThree from './child/playThree.vue'
export default {
  name: 'play',
  components:{playOne,playTwo,playThree},
  data(){
    return {
      one:""
    }
  },
  methods:{
    getData(oneData){
       this.one=oneData;//接受子传父的数据
    }
  }
}
</script>
